import request from '@/utils/request';
// 获取指定商品的点评列表
export function getComments(good_id,start,number) {
  return request({
    url: '/Api/UserComment/getList',
    params: {
      good_id,
      start,
      number
    },
    method: 'get'
  })
}
// 添加点评
export function addComments({good_id,content,dp_score,dp_score_express,dp_score_service}) {
  return request({
    url: '/Api/UserComment/add',
    data: {
      good_id,
      content,
      dp_score_express,
      dp_score_service,
      dp_score
    },
    method: 'post'
  })
}
// 获取领茶样商品列表
export function getTeaSamplesList(start,number) {
  return request({
    url: '/Api/Good/getTeaSamplesList/',
    params: {
      start,
      number
    },
    method: 'get'
  })
}
// 获取领茶样商品详情（根据商品id获取）
export function getTeaSamplesInfo(id) {
  return request({
    url: '/Api/Good/getTeaSamplesById',
    params: {
      id
    },
    method: 'get'
  })
}
